package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("商品")
public class goods implements Serializable {
    @ApiModelProperty("ID")
    private Integer id;


    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty( value = "",required = false)
    private String CreateBy;

    @TableField(fill = FieldFill.INSERT,select = false)
    @ApiModelProperty( required = false)
    private LocalDateTime CreateTime;

    @TableField(select = false)//不参与查询
    @ApiModelProperty( required = false)
    @TableLogic(value = "2", delval = "1")
    private Boolean DeleteFlag;

    @TableField(fill = FieldFill.INSERT_UPDATE,select = false)
    @ApiModelProperty( required = false)
    private String UpdateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE,select = false)
    @ApiModelProperty( required = false)
    private LocalDateTime UpdateTime;

    @ApiModelProperty(value = "商品类型", required = false)
    @TableField(exist = false)//这个字段在表中不存在
    private String typeName;


    @ApiModelProperty("已购买的数量")
    private Integer buyCount;

    private String categoryPath;
    @TableField(select = false)//不参与查询
    private Double cost;

    @ApiModelProperty("商品名字")
    private String goodsName;

    private String goodsUnit;
    private String goodsVideo;

    @ApiModelProperty("商品详情")
    private String intro;

    @ApiModelProperty("上架情况 1:上架 2：下架")
    private String marketEnable;


    private  String original;
    @ApiModelProperty("商品价格")
    private Double price;

    @ApiModelProperty("商品库存")

    private Integer quantity;
    @ApiModelProperty("商品类型")

    private Integer goodsType;

    private String salesModel;
    private String sellingPoint;

    @ApiModelProperty("商品图片")
    private String small;
    @ApiModelProperty("商品编号")

    private String sn;
    @ApiModelProperty("下架原因")

    private String underMessage;

    private Double weight;
    private String big;
}
